<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE><?php echo L("reg_title") ?></TITLE>
<link rel='stylesheet' type='text/css' href='/8am/Public/Css/common.css'>
<!--
<script language='JavaScript' src='/8am/Public/Js/Base.js'></script>  
<script language='JavaScript' src='/8am/Public/Js/prototype.js'></script>  
<script language='JavaScript' src='/8am/Public/Js/mootools.js'></script>  
<script language='JavaScript' src='/8am/Public/Js/Ajax/ThinkAjax.js'></script>  
<script language='JavaScript' src='/8am/Public/Js/Form/CheckForm.js'></script>  
-->

<script language='JavaScript' src='/8am/Public/Js/jquery.js'></script> 
<script language='JavaScript' src='/8am/Public/Js/common.js'></script> 
<!---->

</HEAD>
 <BODY>
 
<SCRIPT LANGUAGE="JavaScript">

function add(){
	ThinkAjax.sendForm('form1','/8am/index.php/member/insert',complete,'result');
}

function complete(data,status){
	if (status==1){
		$('result').innerHTML = '注册成功!';
	}
}

function checkUser(){
	ThinkAjax.send('/8am/index.php/member/checkUser','ajax=1&username='+$('username').value,'','result');
}

function Check(sec)
{
	var username = $.trim($('#'+sec).val());
	var ck = $('#ck'+sec);
	CheckAjax(ck, '/8am/index.php/member/checkUser', 'ajax=1&username='+username);
}

function showadv(obj){
	$('#'+obj).slideToggle("slow"); 
}

</SCRIPT>
 <div class="main">
 <H2><?php echo L("reg_title") ?></H2>

<FORM id="form1" METHOD=POST ACTION="/8am/index.php/member/insert">
 <TABLE cellpadding=2 cellspacing=2>
  <TR>
	<TD colspan="2"><div id="result" name="result" class="" style="font-family:微软雅黑,Tahoma;letter-spacing:2px"></div></TD>
 </TR>
<TBODY>
 <TR>
	<TD class="tRight" width="12%"><?php echo L("reg_username") ?></TD>
	<TD class="tLeft" >
	<INPUT TYPE="text" NAME="username" id="username" style="height:23px" class="large bLeft" onblur="Check(this.name)">
	<span id="ckusername" name="ckusername"></span>
	</TD>
 </TR>
 <TR>
	<TD class="tRight" ><?php echo L("reg_userpass") ?></TD>
	<TD class="tLeft" >
	<INPUT TYPE="password" NAME="password" id="password" style="height:23px" class="huge bLeft" onblur="Check(this.name)">
	<span id="ckpassword" name="ckpassword"></span>
	</TD>
 </TR>
 <TR>
	<TD class="tRight" ><?php echo L("reg_userpass2") ?></TD>
	<TD class="tLeft" >
	<INPUT TYPE="password" NAME="password2" id="password2" style="height:23px" class="huge bLeft">
	<span id="ckpassword2" name="ckpassword2"></span>
	</TD>
 </TR>
  <TR>
	<TD class="tRight" ><?php echo L("reg_useremail") ?></TD>
	<TD class="tLeft" >
	<INPUT TYPE="text" NAME="email" id="email" style="height:23px" class="huge bLeft">
	<span id="ckemail" name="ckemail"></span>
	</TD>
 </TR>
  <TR>
	<TD class="tRight" >高级选项</TD>
	<TD class="tLeft" ><INPUT onclick=showadv('adv') type=checkbox value=1 name=advshow> 显示高级用户设置选项</TD>
 </TR>
</TBODY>
</table>
<div id="adv" style="DISPLAY: none">
 <TABLE>
  <TR>
	<TD class="tRight" >安全提问</TD>
	<TD class="tLeft" ><INPUT TYPE="text" NAME="question" style="height:23px" class="huge bLeft"></TD>
 </TR>
  <TR>
	<TD class="tRight" >回答</TD>
	<TD class="tLeft" ><INPUT TYPE="text" NAME="answer" style="height:23px" class="huge bLeft"></TD>
 </TR>
  <TR>
	<TD class="tRight" >性别</TD>
	<TD class="tLeft" ><INPUT TYPE="text" NAME="gender" style="height:23px" class="huge bLeft"></TD>
 </TR>
  <TR>
	<TD class="tRight" >生日</TD>
	<TD class="tLeft" ><INPUT TYPE="bday" NAME="gender" style="height:23px" class="huge bLeft"></TD>
 </TR>
  </TABLE>
</div>
<div>
<TABLE>
 <TR>
	<TD class="tRight tTop" ><?php echo L("reg_verifycode") ?></TD>
	<TD><INPUT TYPE="text" NAME="verify" style="height:23px;" class="small" > <img src="/8am/index.php/member/verify" align="absmiddle" onclick="this.src='/8am/index.php/member/verify'" style="cursor:hand;" /></TD>
 </TR>
 <TR>
	<TD><INPUT TYPE="hidden" NAME="ajax" value="1"></TD>
	<TD><INPUT TYPE="button" onclick="add()" class="button" value="<?php echo L("form_submit") ?>"> <INPUT TYPE="reset" class="button" value="<?php echo L("form_reset") ?>"></TD>
 </TR>
  <TR>
  <TD></TD>
	<TD > <div id="list" >
	<?php if(isset($list)): ?><?php $i = 0; ?><?php if( count($list)==0 ) echo "" ?><?php foreach($list as $key=>$vo): ?><?php ++$i;?><?php $mod = (($i % 2 )==0)?><div class="result" style='font-weight:normal;<?php if(($odd)  ==  "1"): ?>background:#ECECFF<?php endif; ?>'>
	<div style="border-bottom:1px dotted silver"><?php echo is_array($vo)?$vo["username"]:$vo->username ?>  [<?php echo is_array($vo)?$vo["password"]:$vo->password ?> <?php echo date('Y-m-d H:i:s',is_array($vo)?$vo["regtime"]:$vo->regtime) ?>]</div>
	</div><?php endforeach; ?><?php endif; ?></div></TD>
  </TR>
 <TR>
 <TD></TD>
	<TD ><HR></TD>
 </TR>
 </TABLE>
  </div>
   </FORM>
</div>
<table width="800" border=1>
      <DIV style="border:1px solid red;">
		  <DIV onclick="showadv('leftmenuitem_0');">用户信息</DIV>
		  <DIV id=leftmenuitem_0>
			  <LI>用户名：admin 
			  <LI>用户组：系统管理员 
			  <LI>登录IP：127.0.0.1 </LI>
		  </DIV>
	  </DIV>
</table>

 </BODY>
</HTML>